/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * WelcomeScreen.java
 *
 * Created on 05 29, 11, 7:54:12 PM
 */
package vera;

/**
 *
 * @author kasia
 */
public class WelcomeScreen extends ParentClass {

    /** Creates new form WelcomeScreen */
    public WelcomeScreen() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        m_labelWelcome = new javax.swing.JLabel();
        m_labelTask = new javax.swing.JLabel();
        m_buttonCreateBill = new javax.swing.JButton();
        m_buttonUpdateBill = new javax.swing.JButton();
        m_buttonCreateReceipt = new javax.swing.JButton();
        m_buttonUpdateReceipt = new javax.swing.JButton();
        m_buttonEnterVariance = new javax.swing.JButton();
        m_buttonViewReports = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(vera.VERAApp.class).getContext().getResourceMap(WelcomeScreen.class);
        m_labelWelcome.setFont(resourceMap.getFont("m_labelWelcome.font")); // NOI18N
        m_labelWelcome.setText(resourceMap.getString("m_labelWelcome.text")); // NOI18N
        m_labelWelcome.setName("m_labelWelcome"); // NOI18N

        m_labelTask.setText(resourceMap.getString("m_labelTask.text")); // NOI18N
        m_labelTask.setName("m_labelTask"); // NOI18N

        m_buttonCreateBill.setText(resourceMap.getString("m_buttonCreateBill.text")); // NOI18N
        m_buttonCreateBill.setName("m_buttonCreateBill"); // NOI18N
        m_buttonCreateBill.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                m_buttonCreateBillMouseClicked(evt);
            }
        });

        m_buttonUpdateBill.setText(resourceMap.getString("m_buttonUpdateBill.text")); // NOI18N
        m_buttonUpdateBill.setName("m_buttonUpdateBill"); // NOI18N
        m_buttonUpdateBill.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                m_buttonUpdateBillMouseClicked(evt);
            }
        });

        m_buttonCreateReceipt.setText(resourceMap.getString("m_buttonCreateReceipt.text")); // NOI18N
        m_buttonCreateReceipt.setName("m_buttonCreateReceipt"); // NOI18N
        m_buttonCreateReceipt.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                m_buttonCreateReceiptMouseClicked(evt);
            }
        });

        m_buttonUpdateReceipt.setText(resourceMap.getString("m_buttonUpdateReceipt.text")); // NOI18N
        m_buttonUpdateReceipt.setName("m_buttonUpdateReceipt"); // NOI18N
        m_buttonUpdateReceipt.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                m_buttonUpdateReceiptMouseClicked(evt);
            }
        });

        m_buttonEnterVariance.setText(resourceMap.getString("m_buttonEnterVariance.text")); // NOI18N
        m_buttonEnterVariance.setName("m_buttonEnterVariance"); // NOI18N
        m_buttonEnterVariance.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                m_buttonEnterVarianceMouseClicked(evt);
            }
        });

        m_buttonViewReports.setText(resourceMap.getString("m_buttonViewReports.text")); // NOI18N
        m_buttonViewReports.setName("m_buttonViewReports"); // NOI18N
        m_buttonViewReports.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                m_buttonViewReportsMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(m_buttonViewReports, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(m_buttonEnterVariance, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(m_buttonUpdateReceipt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(m_buttonCreateReceipt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(m_labelTask, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(m_labelWelcome, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(m_buttonCreateBill, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
                    .addComponent(m_buttonUpdateBill, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(741, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(m_labelWelcome)
                .addGap(18, 18, 18)
                .addComponent(m_labelTask)
                .addGap(28, 28, 28)
                .addComponent(m_buttonCreateBill)
                .addGap(18, 18, 18)
                .addComponent(m_buttonUpdateBill)
                .addGap(18, 18, 18)
                .addComponent(m_buttonCreateReceipt)
                .addGap(18, 18, 18)
                .addComponent(m_buttonUpdateReceipt)
                .addGap(18, 18, 18)
                .addComponent(m_buttonEnterVariance)
                .addGap(18, 18, 18)
                .addComponent(m_buttonViewReports)
                .addContainerGap(293, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void m_buttonCreateBillMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_m_buttonCreateBillMouseClicked
        this.setVisible(false);
        this.dispose();
        new BillScreen().setVisible(true);
    }//GEN-LAST:event_m_buttonCreateBillMouseClicked

    private void m_buttonUpdateBillMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_m_buttonUpdateBillMouseClicked
        this.setVisible(false);
        this.dispose();
        new BillScreen().setVisible(true);
    }//GEN-LAST:event_m_buttonUpdateBillMouseClicked

    private void m_buttonCreateReceiptMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_m_buttonCreateReceiptMouseClicked
        this.setVisible(false);
        this.dispose();
        new ReceiptScreen().setVisible(true);
    }//GEN-LAST:event_m_buttonCreateReceiptMouseClicked

    private void m_buttonUpdateReceiptMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_m_buttonUpdateReceiptMouseClicked
        this.setVisible(false);
        this.dispose();
        new ReceiptScreen().setVisible(true);
    }//GEN-LAST:event_m_buttonUpdateReceiptMouseClicked

    private void m_buttonEnterVarianceMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_m_buttonEnterVarianceMouseClicked
        this.setVisible(false);
        this.dispose();
        new VarianceScreen().setVisible(true);
    }//GEN-LAST:event_m_buttonEnterVarianceMouseClicked

    private void m_buttonViewReportsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_m_buttonViewReportsMouseClicked
        this.setVisible(false);
        this.dispose();
        new ReportsScreen().setVisible(true);
    }//GEN-LAST:event_m_buttonViewReportsMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new WelcomeScreen().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton m_buttonCreateBill;
    private javax.swing.JButton m_buttonCreateReceipt;
    private javax.swing.JButton m_buttonEnterVariance;
    private javax.swing.JButton m_buttonUpdateBill;
    private javax.swing.JButton m_buttonUpdateReceipt;
    private javax.swing.JButton m_buttonViewReports;
    private javax.swing.JLabel m_labelTask;
    private javax.swing.JLabel m_labelWelcome;
    // End of variables declaration//GEN-END:variables
}
